import os

# 设置Tensorflow的运行日志等级为2--Warning
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import tensorflow as tf

if __name__ == '__main__':
    start = 0
    end = 10
    delte = 1

    r0 = tf.range(start, end, delte)
    print(r0)
    r1 = tf.range(start, end, 2)
    print(r1)

    # 默认初始值为0，步长为1
    r2 = tf.range(end)
    print(r2)
